package main

import (
	"fmt"
	"os"
	"os/exec"
)

func main() {
	envVars := []string{
		"PATH=" + os.Getenv("PATH"),
		// "MY_VARIABLE=value1",
		// C:/Program Files/Git/usr/bin",
		// "HOME=C:/Users/Administrator",
	}

	// cmd := exec.Command("C:/Program Files/Git/usr/bin/pwd.exe")
	cmd := exec.Command("C:/Program Files/Git/usr/bin/cp.exe", "./exec/test.txt", "./exec/test1.txt")
	cmd.Env = envVars

	output, err := cmd.CombinedOutput()
	if err != nil {
		panic(err)
	}
	fmt.Printf("Output: %s\n", output)
}
